package com.wzd.eduservice.client;

import com.wzd.commonutils.R;
import com.wzd.commonutils.vo.im.GroupList;
import com.wzd.commonutils.vo.im.Mine;
import com.wzd.eduservice.client.impl.IMDegradeFeignClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ProjectName: e_learning
 * @Package: com.wzd.eduservice.client
 * @ClassName: ImClinet
 * @Author: lofxve
 * @Description:
 * @Date: 2021/5/10 9:18
 * @Version: 1.0
 */
@Component
@FeignClient(value = "service-im")
public interface ImClinet {
    @ApiOperation("新增班级")
    @PostMapping("/eduim/group/saveGroup")
    public R saveGroup(@RequestBody GroupList groupList);

    @ApiOperation("删除班级")
    @GetMapping("deleteGroup/{id}")
    public R deleteGroup(@PathVariable("id") String id);

    @ApiOperation("修改用户")
    @PostMapping("/eduim/mine/updateMine")
    public R updateMine(@RequestBody Mine mine);
}
